package self;

import java.io.*;
import java.util.Arrays;

public class Input {
    public static void main(String[] args) throws IOException {
        show();
    }

    private static void show() throws IOException {
        InputStream in = new FileInputStream("E:\\1.txt");
        OutputStream out = new FileOutputStream("E:\\2.txt");
        int i1 = in.read();
        System.out.println(i1);
        byte[] bytes = new byte[10];
        int i = in.read(bytes);
        System.out.println(i);
        System.out.println(Arrays.toString(bytes));

        out.write(bytes);
        System.out.println(Arrays.toString(bytes));
        in.close();
        out.close();
    }

}
